﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/HomePage.Master" CodeBehind="News.aspx.cs" Inherits="Indeco.G24.Website.News.News" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolderMain">
<asp:SiteMapPath ID="SiteMapPath1"  runat="server" SiteMapProvider="CategoryNewsSiteMapProvider"
      RootNodeStyle-Font-Size="11pt" PathSeparatorStyle-ForeColor="#8A0000" RootNodeStyle-ForeColor="#8A0000">
</asp:SiteMapPath>  
<div style="padding-left:5px; padding-right:5px; height: 118px; float:left;">    
        <dxtc:ASPxPageControl SkinID="homeTabPageDefault" ID="ASPxPageControlNewCat" runat="server" ActiveTabIndex="0" Width="100%" CssFilePath="~/App_Themes/Glass/{0}/styles.css" CssPostfix="Glass" ImageFolder="~/App_Themes/Glass/{0}/" TabSpacing="0px">
            <TabPages> 
            </TabPages>
            <contentstyle>
                <Border BorderColor="#4986A2"></Border>
            </contentstyle>
            <paddings paddingleft="0px"></paddings>
            <tabstyle horizontalalign="Center"></tabstyle>
        </dxtc:ASPxPageControl>  
        
    </div>
 <div style="width: 517px; float:left;">
<asp:Panel ID="PanelNews" runat="server">
<asp:DataList ID="DataListGetNewsByID" runat="server" DataSourceID="TinTucDataSource"
OnItemDataBound="DataListGetNewsByID_ItemDataBound"
>
<ItemTemplate>
    <table border="0" cellpadding="0" cellspacing="6" width="100%">
        <tr>
            <td style="text-align:left; vertical-align:top">
            <asp:Label ID="lblNewsIDSelected" runat="server" Text='<%#Eval("IDTinTuc")%>' Visible="false"></asp:Label>
            <asp:Label ID="lblHeader" runat="server" Text='<%# Eval("TieuDe") %>' Font-Bold="true" Font-Size="13pt" Font-Names="Times New Roman"  ></asp:Label>
            <asp:Label ID="Label3" runat="server" Text='<%# " - " + System.DateTime.Parse(Eval("ThoiDiemCapNhat").ToString()).ToShortDateString() %>' SkinID="lblDateTime"></asp:Label>
            <br />
            </td>                    
        </tr>
        <tr>
            <td style="text-align:justify; vertical-align:top">                
                <asp:Image SkinID="imageThumbLeft" Width="180" ID="Image1" 
                runat="server" Visible='<%# (Eval("HinhMinhHoa")!=null)?true:false %>' 
                             ImageUrl='<%# (Eval("HinhMinhHoa")!=null)?Eval("HinhMinhHoa").ToString():""%>'  />
                <asp:Label ID="lblMota" runat="server" Text='<%#Eval("MoTa") %>'  ForeColor="#5F5F5F" Font-Size="11pt" Font-Names="Times New Roman"   Font-Bold="true"></asp:Label>                    
            </td>
        </tr>
        <tr>
            <td style="text-align:justify; vertical-align:top">
            <asp:Label ID="lblNoidung" runat="server" Text='<%# Eval("NoiDung") %>' ForeColor="Black" Font-Size="10pt"></asp:Label>
            </td>
        </tr>
         <tr>
            <td style="text-align:right; vertical-align:top">
            <asp:Label ID="NguonTin" runat="server" Text='<%# Eval("NguonTin") %>' ForeColor="Black" Font-Bold="true" Font-Size="10pt"></asp:Label>
            </td>
        </tr>
    </table>
    <hr />
    <div style="text-align:left; padding-left:10px;"> 
    <asp:Label ID="Label2" runat="server" Font-Size="10pt" Text="Các tin khác:" style="color:#8A0000;"></asp:Label>
    </div>
    <div style="text-align:left; padding-left:12px; padding-top:5px;padding-bottom:5px;"> 
        
        <asp:DataList ItemStyle-Width="100%" ID="datalistOtherNews" Width="100%" runat="server" >
        <ItemTemplate>   
        <div style="text-align:left; padding-left:6px; font-size:9pt;"  >                                                       
            <asp:Image ID="Image2" runat="server" ImageUrl="~/App_Themes/Default/Images/dot.gif" />
            <asp:HyperLink Font-Size="9pt" ID="hyperLink19" ForeColor="Black" ToolTip='<%#Eval("TieuDe")%>' runat="server" NavigateUrl='<%#"News.aspx?IDTinTuc="+Eval("IDTinTuc")%>'>               
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("TieuDe") %>'></asp:Label>
                <asp:Label ID="LabelTimeDate1" runat="server" 
                Text='<%# " (" + System.DateTime.Parse(Eval("ThoiDiemCapNhat").ToString()).ToShortDateString() + ")" %>' 
                SkinID="lblDateTime"></asp:Label>
            </asp:HyperLink>
        </div>      
        </ItemTemplate>                
        </asp:DataList>
    </div>
</ItemTemplate>
</asp:DataList>
<data:TinTucDataSource ID="TinTucDataSource" runat="server"	 
	 SelectMethod="GetPaged" >	
	 <Parameters>	
	 <data:SqlParameter Name="WhereClause" UseParameterizedFilters="false">
	 
	 <Filters>
	 <data:TinTucFilter Column="IDTinTuc" ComparisionType="Equals"  QueryStringField="IDTinTuc" />	
	 </Filters>
	 </data:SqlParameter>
	 </Parameters>	 	 
 </data:TinTucDataSource>
<br />
</asp:Panel>
</div>
<div style="width: 227px; float:left;padding-top:30px;padding-left:10px;padding-right:10px">
<table width="100%" cellpadding="0" cellspacing="0"  border="0" style="border-bottom: 1px solid #E3E3E4;border-right: 1px solid #E3E3E4;border-top: 1px solid #E3E3E4;border-left: 1px solid #E3E3E4;margin-bottom:5px;" >
<tr>
<td class="tdBlockContentRigth" style="color:#8A0000;">
Tiêu Điểm
</td>
</tr>
<tr>
<td style="padding-top:5px;padding-left:5px;padding-bottom:5px;padding-right:5px;">
 <asp:DataList ItemStyle-Width="100%" ID="datalistTieuDiem" Width="100%" runat="server" >
    <ItemTemplate>   
    <div style="text-align:left; padding-left:6px; font-size:9pt;"  >                                                       
        <asp:Image ID="Image2" runat="server" ImageUrl="~/App_Themes/Default/Images/dot.gif" />
        <asp:HyperLink Font-Size="9pt" ID="hyperLink19" ToolTip='<%#Eval("TieuDe")%>' runat="server" NavigateUrl='<%#"News.aspx?IDTinTuc="+Eval("IDTinTuc")%>'>               
            <asp:Label ID="Label1" runat="server" Text='<%# Eval("TieuDe") %>'></asp:Label>
            <asp:Label ID="LabelTimeDate1" runat="server" 
            Text='<%# " (" + System.DateTime.Parse(Eval("ThoiDiemCapNhat").ToString()).ToShortDateString() + ")" %>' 
            SkinID="lblDateTime"></asp:Label>
        </asp:HyperLink>
    </div>      
    </ItemTemplate>                
    </asp:DataList>
</td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0"  border="0" style="border-bottom: 1px solid #E3E3E4;border-right: 1px solid #E3E3E4;border-top: 1px solid #E3E3E4;border-left: 1px solid #E3E3E4;" >
<tr>
<td class="tdBlockContentRigth" style="color:#8A0000;">
Sự Kiện
</td>
<tr>
<td  style="padding-top:5px;padding-left:5px;padding-bottom:5px;padding-right:5px;">
 <asp:DataList ItemStyle-Width="100%" ID="datalistSuKien" Width="100%" runat="server" >
    <ItemTemplate>   
    <div style="text-align:left; padding-left:6px; font-size:9pt;"  >                                                       
        <asp:Image ID="Image2" runat="server" ImageUrl="~/App_Themes/Default/Images/dot.gif" />
        <asp:HyperLink Font-Size="9pt" ID="HTieuDe" ToolTip='<%#Eval("TieuDe")%>' runat="server" NavigateUrl='<%#"News.aspx?IDTinTuc="+Eval("IDTinTuc")%>'>               
            <asp:Label ID="TieuDe" runat="server" Text='<%# Eval("TieuDe") %>'></asp:Label>
            <asp:Label ID="ThoiDiemCapNhat" runat="server" 
            Text='<%# " (" + System.DateTime.Parse(Eval("ThoiDiemCapNhat").ToString()).ToShortDateString() + ")" %>' 
            SkinID="lblDateTime"></asp:Label>
        </asp:HyperLink>
    </div>      
    </ItemTemplate>                
    </asp:DataList>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" Width="228px" >
<tr>
<td style="padding-top:5px;padding-bottom:5px;padding-right:5px;">
<asp:DataList ID="listNews" runat="server" Width="228px" 
    OnItemDataBound="listNews_ItemDataBound" >
    <ItemTemplate>
    <table width="100%" cellpadding="0" cellspacing="0"  border="0" style="border-bottom: 1px solid #E3E3E4;border-right: 1px solid #E3E3E4;border-top: 1px solid #E3E3E4;border-left: 1px solid #E3E3E4;" >
    <tr>
    <td class="tdBlockContentRigth" style="color:#8A0000;">
    <%#Eval("Ten")%>
        <asp:Label ID="IDTinTucDanhMuc" runat="server" Text='<%#Eval("IDTinTucDanhMuc") %>' Visible="false" />
    </td>
    <tr>
    <td  style="padding-top:5px;padding-left:5px;padding-bottom:5px;padding-right:5px;">
     <asp:DataList ItemStyle-Width="100%" ID="datalistNewsOther" Width="100%" runat="server" >
        <ItemTemplate>   
        <div style="text-align:left; padding-left:6px; font-size:9pt;"  >                                                       
            <asp:Image ID="Image2" runat="server" ImageUrl="~/App_Themes/Default/Images/dot.gif" />
            <asp:HyperLink Font-Size="9pt" ID="HTieuDe" ToolTip='<%#Eval("TieuDe")%>' runat="server" NavigateUrl='<%#"News.aspx?IDTinTuc="+Eval("IDTinTuc")%>'>               
                <asp:Label ID="TieuDe" runat="server" Text='<%# Eval("TieuDe") %>'></asp:Label>
                <asp:Label ID="ThoiDiemCapNhat" runat="server" 
                Text='<%# " (" + System.DateTime.Parse(Eval("ThoiDiemCapNhat").ToString()).ToShortDateString() + ")" %>' 
                SkinID="lblDateTime"></asp:Label>
            </asp:HyperLink>
        </div>      
        </ItemTemplate>                
        </asp:DataList>
    </td>
    </tr>
    </table>
    </ItemTemplate>
    </asp:DataList>
</td>
</tr>
</table>    
</div>
</asp:Content>

